#include "global.h"
#include <cmath>
#include <stdlib.h>

// Two double values even if expect them to be the same, because of the internal storage representation,
// differ by a small qty. This function is for overcoming this limitation.
// Returns true if val1 = val2
bool isEqual( double val1, double val2 )
{
    if( fabs(val1 - val2) < DELTA_DOUBLE_COMP )
        return true;

    return false;
}
